from django.urls import path
from .views import DictTypePageView, DictTypeFormView, CreateDictTypeView, UpdateDictTypeView, DeleteDictTypeView, \
    DictPageView, DictOptionsView1, DictFormView, CreateDictView, UpdateDictView, DeleteDictView, DictOptionsView, \
    DictListView

urlpatterns = [
    path('dict/types/page', DictTypePageView.as_view(), name='dict_type_page'),
    path('dict/types/<int:id>/form', DictTypeFormView.as_view(), name='dict_type_form'),
    path('dict/types', CreateDictTypeView.as_view(), name='create_dict_type'),
    path('dict/types/<int:id>', UpdateDictTypeView.as_view(), name='update_dict_type'),
    path('dict1/types/<str:ids>', DeleteDictTypeView.as_view(), name='delete_dict_type'),
    path('dict/page', DictPageView.as_view(), name='dict_page'),
    path('dict/options', DictOptionsView.as_view(), name='dict_options'),
    path('dict/<int:id>/form', DictFormView.as_view(), name='dict_form'),
    path('dict', CreateDictView.as_view(), name='create_dict'),
    path('dict/<int:id>', UpdateDictView.as_view(), name='update_dict'),
    path('dict1/<str:ids>', DeleteDictView.as_view(), name='delete_dict'),
    path('dict/<str:code>/options', DictOptionsView1.as_view(), name='dict_options'),
    path('dict/list', DictListView.as_view(), name='dict_list'),

]
